<div class="buttons">
    <a href="<?php echo $this->createUrl('create') ?>">Create Category</a>
    <a href="<?php echo $this->createUrl('item/index') ?>">items</a>
    <a href="<?php echo $this->createUrl('default/logout') ?>">Logout</a>
</div>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider' => $dataProvider,
    'columns' => array(
        'name',
        array(
            'name' => 'ord',
            'headerHtmlOptions' => array('width' => 50),
            'type' => 'html',
            'value' => 'CHtml::link("↑", Yii::app()->createUrl("nav/category/upord", array("ord" => $data->ord, "up" => 1)), array("class" => "ord"))
                . CHtml::link("↓", Yii::app()->createUrl("nav/category/upord", array("ord" => $data->ord)), array("class" => "ord"))'
        ),
        array(
            'class' => 'CButtonColumn',
            'template' => '{update}{delete}'
        )
    )
));
?>

<script>
jQuery(function($) {
jQuery('#yw0 a.ord').live('click',function() {
	$.fn.yiiGridView.update('yw0', {
		type:'POST',
		url:$(this).attr('href'),
		success:function() {
			$.fn.yiiGridView.update('yw0');
		}
	});
	return false;
});
})
</script>